import request from '@/utils/request'
// 获取员工列表
export const getEmployeeListApi = (params)=>{
    return request({
        url:'/sys/user',
        method:'get',
        // params:params
        params
    })
}
// 获取员工详情
export const getEmployeeInfoApi = (id)=>{
    return request({
        url:'/sys/user/'+ id,
        method:'get'
    })
}
// 添加员工
export const addEmployeeApi = (data)=>{
    return request({
        url:'/sys/user',
        method:'post',
        data
    })
}
// 修改员工
export const editEmployeeApi = (data)=>{
    return request({
        url:'/sys/user/'+data.id,
        method:'put',
        data
    })
}
// 删除员工
export const delEmployeeInfoApi = (id)=>{
    return request({
        url:'/sys/user/'+ id,
        method:'delete'
    })
}



